package com.qf.flash.ui.circle.adapter;

import android.widget.TextView;

import com.qf.flash.R;
import com.qf.flashlib.adapter.BaseRViewItem;
import com.qf.flashlib.adapter.RViewHolder;

/**
 * 2020/3/4 17:11
 */
public class HotNumberItem extends BaseRViewItem<String> {
    @Override
    public int getItemLayout() {
        return R.layout.item_type_number;
    }

    @Override
    public void convert(RViewHolder holder, String entity, int position, int itemSize) {
        int singleChosenPosition = holder.getAdapter().getSingleChosenPosition();
        TextView view = holder.getView(R.id.tv_content);
        view.setText(entity);
        view.setBackgroundResource(R.drawable.shape_comm_orange);
        view.setTextColor(view.getContext().getResources().getColor(R.color.color_333333));

    }
}
